﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Team3_ProjectGUIFinal
{
    public partial class helpForm : Form
    {
        public helpForm()
        {
            InitializeComponent();
        }

        private void HelpTree_AfterSelect(object sender, TreeViewEventArgs e)
        {
            TreeNode node = HelpTree.SelectedNode;
            switch (node.Text)
            {
                case ("Start"):
                    helpText.Text =
                    ("Welcome \n\n" +
                     "This is the help function which you can use to understand the program\n\n" +
                     "For more information you can contact the owner");
                    break;
                case ("Open File"):
                    helpText.Text = "To open a new picture/file click the file tab on the upper left side, " +
                    "and select the picture";
                    break;
                case ("Using Filters"):
                    helpText.Text = "You can select a filter by opening the filter tab on the upper left, next to the file tab.";
                    break;
                case ("Progress Bar"):
                    helpText.Text = "Please select a child node";
                    break;
                case ("Visuals"):
                    helpText.Text = "After each applied filter the old picture is saved to the progress bar.\n" +
                    "You can later select this picture as the input picture or see it fullscreen";
                    break;
                case ("Clicking"):
                    helpText.Text = "Right click on the image: 'Set as input'\n" +
                    "Double click on the image: 'See the picture full size'";
                    break;
                case ("Dock Notify Icon"):
                    helpText.Text = "In the notify dock on the bottom right side of your windows screen there is a little notification icon that represents this application.\n" +
                    "By clicking this icon, you can close the application.";
                    break;
                case ("Open Multiple Files"):
                    helpText.Text = "You can open multiple files by clicking on the 'open multiple files tab' on the upper left corner." +
                    " By holding the CTRL button you can select multiple images. These pictures will show in the right side of the screen" +
                    " See 'Progress Bar / Clicking' for clickable options";
                    break;
                case ("Combine Filters"):
                    helpText.Text = "You can combine multiple filters by selecting the 'Combine Filters tab' on the upper left corner." +
                    " This will open a new window where u can add, delete or reset the filter sequence. Press create to make the new filter and " +
                    " select it in the filter menu.";
                    break;
            }
        }
    }
}
